# coding=utf-8
import jinja2
import os

'''
    Loads templates from the file system. This loader can find templates 
    in folders on the file system and is the preferred way to load them.
'''
class Jinja2_my_env():
    HTML_PATH = '/pages/templates/' # the palce where the htmls located
    
    def getEnv(self):
#         JINJA_ENVIRONMENT = jinja2.Environment(
#             loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))
        JINJA_ENVIRONMENT = jinja2.Environment(
            loader=jinja2.FileSystemLoader('')) ## 为什么改成字符就好了？
        return JINJA_ENVIRONMENT